.class Lcom/baidu/mobads/utils/w;
.super Lcom/baidu/mobads/openad/e/e$b;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/baidu/mobads/openad/e/e$b<",
        "Ljava/lang/String;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic a:Landroid/content/Context;

.field final synthetic b:Lcom/baidu/mobads/utils/t;


# direct methods
.method constructor <init>(Lcom/baidu/mobads/utils/t;Landroid/content/Context;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/baidu/mobads/utils/w;->b:Lcom/baidu/mobads/utils/t;

    iput-object p2, p0, Lcom/baidu/mobads/utils/w;->a:Landroid/content/Context;

    invoke-direct {p0}, Lcom/baidu/mobads/openad/e/e$b;-><init>()V

    return-void
.end method


# virtual methods
.method public synthetic a()Ljava/lang/Object;
    .locals 1

    .line 1
    invoke-virtual {p0}, Lcom/baidu/mobads/utils/w;->b()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public bridge synthetic a(Ljava/lang/Object;)V
    .locals 0

    .line 2
    check-cast p1, Ljava/lang/String;

    invoke-virtual {p0, p1}, Lcom/baidu/mobads/utils/w;->a(Ljava/lang/String;)V

    return-void
.end method

.method public a(Ljava/lang/String;)V
    .locals 0

    return-void
.end method

.method public b()Ljava/lang/String;
    .locals 9

    const-string v0, "guid"

    const-string v1, "__x_adsdk_agent_header__"

    const-string v2, "&"

    const-string v3, ""

    .line 1
    :try_start_0
    invoke-static {}, Lcom/baidu/mobads/utils/t;->d()Ljava/lang/String;

    move-result-object v4

    if-nez v4, :cond_3

    iget-object v4, p0, Lcom/baidu/mobads/utils/w;->a:Landroid/content/Context;

    if-eqz v4, :cond_3

    .line 2
    invoke-static {}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getInstance()Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;

    move-result-object v4

    invoke-virtual {v4}, Lcom/baidu/mobads/utils/XAdSDKFoundationFacade;->getCommonUtils()Lcom/baidu/mobads/utils/h;

    move-result-object v4

    .line 3
    iget-object v5, p0, Lcom/baidu/mobads/utils/w;->a:Landroid/content/Context;

    const/4 v6, 0x0

    invoke-virtual {v5, v1, v6}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v5

    .line 4
    invoke-interface {v5, v0, v3}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    .line 5
    invoke-static {v5}, Lcom/baidu/mobads/utils/t;->c(Ljava/lang/String;)Ljava/lang/String;

    .line 6
    invoke-static {}, Lcom/baidu/mobads/utils/t;->d()Ljava/lang/String;

    move-result-object v5

    if-eqz v5, :cond_0

    invoke-static {}, Lcom/baidu/mobads/utils/t;->d()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/String;->length()I

    move-result v5

    if-gtz v5, :cond_3

    .line 7
    :cond_0
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v7, p0, Lcom/baidu/mobads/utils/w;->b:Lcom/baidu/mobads/utils/t;

    iget-object v8, p0, Lcom/baidu/mobads/utils/w;->a:Landroid/content/Context;

    invoke-virtual {v7, v8}, Lcom/baidu/mobads/utils/t;->getMacAddress(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v5, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v7, p0, Lcom/baidu/mobads/utils/w;->b:Lcom/baidu/mobads/utils/t;

    iget-object v8, p0, Lcom/baidu/mobads/utils/w;->a:Landroid/content/Context;

    .line 8
    invoke-virtual {v7, v8}, Lcom/baidu/mobads/utils/t;->getIMEI(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v5, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    .line 9
    invoke-interface {v4, v2}, Lcom/baidu/mobads/interfaces/utils/IXAdCommonUtils;->md5(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/baidu/mobads/utils/t;->c(Ljava/lang/String;)Ljava/lang/String;

    .line 10
    invoke-static {}, Lcom/baidu/mobads/utils/t;->d()Ljava/lang/String;

    move-result-object v2

    if-eqz v2, :cond_2

    invoke-static {}, Lcom/baidu/mobads/utils/t;->d()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v2

    if-gtz v2, :cond_1

    goto :goto_0

    .line 11
    :cond_1
    iget-object v2, p0, Lcom/baidu/mobads/utils/w;->a:Landroid/content/Context;

    invoke-virtual {v2, v1, v6}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v1

    .line 12
    invoke-interface {v1}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v1

    invoke-static {}, Lcom/baidu/mobads/utils/t;->d()Ljava/lang/String;

    move-result-object v2

    invoke-interface {v1, v0, v2}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    goto :goto_1

    .line 13
    :cond_2
    :goto_0
    invoke-static {v3}, Lcom/baidu/mobads/utils/t;->c(Ljava/lang/String;)Ljava/lang/String;

    .line 14
    invoke-static {}, Lcom/baidu/mobads/utils/t;->d()Ljava/lang/String;

    move-result-object v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    return-object v0

    .line 15
    :catchall_0
    invoke-static {v3}, Lcom/baidu/mobads/utils/t;->c(Ljava/lang/String;)Ljava/lang/String;

    .line 16
    :cond_3
    :goto_1
    invoke-static {}, Lcom/baidu/mobads/utils/t;->d()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method
